//测试
import { reqgetDetailList } from '@/api'
const state={
	dataList: []
}
const mutations={
    GETDATAILSDATA(state,data){
        state.dataList = data
    }
}
const actions={
    async getdatailsdata ({commit},id){
        let result = await reqgetDetailList(id)
        console.log(result)
        if(result.code ===200){
            commit('GETDATAILSDATA',result.data)

        }
    }
}
const getters={
	
}
export default {
	state,
	mutations,
	actions,
	getters
}